<%@ page import="java.util.Map" %>
<%@ page import="net.amsoft.iservice.isso.service.ISSOService" %>
<%@ page import="net.amsoft.iservice.isso.webapp.dataObject.LoginData" %>
<%@ page import="net.amsoft.iservice.isso.util.ISSOConstants" %>
<%@ page import="net.amsoft.iservice.isso.hibernate.IBroker" %>
<%@ include file="base.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%
	// Service URLs
	String contactURL = "#";
	String forwardingURL = "#";
	
	// Get IBroker Data
	IBroker oIBroker = ISSOService.getIBroker(request.getServerName());

	// Get loggedInSynonym
	LoginData oLoginData = (LoginData) session.getAttribute(ISSOConstants.SESSION_LOGIN_OBJ);
	if ((oIBroker!=null) && (oLoginData!=null))
	{
		contactURL = oIBroker.getContactURL() + oLoginData.getLoggedInSynonym();
		forwardingURL = oIBroker.getForwardingURL() + oLoginData.getLoggedInSynonym();
	}

%>

<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
		<!--
		function submitForm(btName)
	    {
    		document.LogoutForm.action.value=btName;
	    	document.LogoutForm.submit();
    	}
		//-->
	</SCRIPT>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title><bean:message key="title.home" /></title>
<link rel="stylesheet" type="text/css" href="styleSheets/iservices.css" />
</head>

<body>

<center>
<table cellspacing=25 border=0 cellpadding=0>
	<%@ include file="leftMenu.jsp" %>
		<td width=605 valign=top>
		<table border=0 cellspacing=0 cellpadding=0 width=605>
<tr><td align="left" colspan="3" width="290" height="23px"><img src="<%=imagePath%>/tab-click-isso.jpg" border="0" height="23px" onmouseover="this.src='<%=imagePath%>/tab-rollover-isso.jpg'" onmouseout="this.src='<%=imagePath%>/tab-click-isso.jpg'" /><a href="<%=contactURL%>"><img src="<%=imagePath%>/tab-noclick-contact.jpg" border="0" height="23px" onmouseover="this.src='<%=imagePath%>/tab-rollover-contact.jpg'" onmouseout="this.src='<%=imagePath%>/tab-noclick-contact.jpg'" /></a><a href="<%=forwardingURL%>"><img src="<%=imagePath%>/tab-noclick-forwarding.jpg" border="0" height="23px" onmouseover="this.src='<%=imagePath%>/tab-rollover-forwarding.jpg'" onmouseout="this.src='<%=imagePath%>/tab-noclick-forwarding.jpg'" /></a></td></tr>
			<tr>
				<td width="270px" valign="top" >
				<table border="0" cellpadding="0" cellspacing="0" width="270px">
					<tr height="45px">
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" bgcolor="#999999">
							<table>
								<tr>
									<td width="170" valign="top" align="left" >
										<img src="<%=imagePath%>/title_isso_home.gif" align="left"/>
									</td>
									<td width="100" valign="top" align="right" >
										<input alt="Logout"
										type="image" src="<%=imagePath%>/button-logout.jpg" 
										onclick="submitForm('logout');">
									</td>
								</tr>
							</table>
						</td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>						
					<tr height="">
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" >
						<table width="270" border="0" bgcolor="#CCCCCC">
							<tr>
								<td width="10px"></td>
								<td height="52px"><font class="black-smalltext"><bean:message
									key="label.welcome" /><b> <bean:write name="LoginData"
									property="loggedInSynonym" scope="session" /></b></font></td>
							</tr>
							<tr>
				                <td width="10px"></td>
								<td class="blue-smalltext"><b><html:errors /></b></td>
							</tr>
							<tr>
								<td height="2px" colspan="2"><img
									src="<%=imagePath%>/dotted-line.gif" /></td>
							</tr>
							<tr>
								<td height="4px" colspan="2"></td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="32px" class="blue-smalltext">
									<bean:message key="label.static.isso" />
								</td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="32px" class="black-smalltext">
									<a href="<%=appBase%>/isso/PreConfig" > 
									<img src="<%=imagePath%>/button-configure.jpg" 
										 alt="Configure ISSO" border="0" />
									</a>
								</td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="35px" class="black-smalltext"></td>
							</tr>
							<tr>
								<td height="2px" colspan="2"><img
									src="<%=imagePath%>/dotted-line.gif" /></td>
							</tr>
							<tr>
								<td height="10px" colspan="2"></td>
							</tr>
							<tr>
								<td width="10px"></td>
								<td height="32px" class="black-xsmalltext"><b><bean:message
									key="label.close.window" /></b></td>
							</tr>
							<tr>
								<td height="10px" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
							</tr>
						</table>
						</td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>						
					<tr height="10">
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
						<td width="270" bgcolor="#999999"></td>
						<td width="10" bgcolor="#999999"><img src="<%=imagePath%>/grey-square.gif"></td>
					</tr>						
				</table>
				</td>
				<td width=25><img src="<%=imagePath%>/white-square.gif" /></td>
				<td width=270 height="304" valign=top><img
					src="<%=imagePath%>/related-news.gif?<%=dt.getTime()%>" width="270" height="304" /><br>
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td colspan=2></td>
	</tr>
</table>

</center>
<form action="/isso/Logout" name="LogoutForm" method="post">
	<INPUT type="hidden" name="action"/>
	<INPUT type="hidden" name='<%=ISSOConstants.REQ_PARAM_SPXRI%>'  value='<%=request.getAttribute(ISSOConstants.REQ_PARAM_SPXRI)%>'/>
</form>
</body>
</html>
